package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author ck
 * @date 2021/11/18 19:02
 */


@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "video_like")
public class VideoLike implements Serializable {

    private static final long serialVersionUID = -3136732836884933874L;
    //主键id
    private ObjectId id;
    //视频id
    private Long vid;
    //当前用户id
    private Long userId;
    //喜欢的用户视频的用户id
    private Long vUserId;
    //创建时间
    private Long created; //创建时间
    //是否喜欢
    private Boolean liked;
}
